def ic_function(self, ns) :
    import code, readline
    ic = code.InteractiveConsole(ns)
    ic.interact("* PyScene Interactive Console *")
    self.viewer.setDone(True)

def ic(self, ns=None) :
    from threading import Thread
    ic_thread = Thread(None, ic_function, "ic", [ self, ns ])
    ic_thread.start()
    
    def ic_callback(self) : None
    self.addCallback(ic_callback)

